package com.haruhinav.config;

import com.haruhinav.ws.ChatEndpoint;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

import javax.servlet.Filter;
import javax.servlet.annotation.WebFilter;


//@ConditionalOnProperty(name = "spring.profiles.active", havingValue = "dev")
//@ComponentScan("com.haruhinav.ws")
@Configuration
public class WebSocketConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter(){
        return new ServerEndpointExporter();
    }
}
